package com.qf.common.enums;

public enum HealthHeadRedisKeyEnum {
    KEY_HEALTH_HEADLINE("health:headline:%s", 30 * 24 * 3600), // 健康头条的键，过期时间为30天
    KEY_HEADLINE_CACHE("headline:cache", 24 * 3600); // 健康头条缓存的键，过期时间为1天

    private String key;
    private int timeout;

    // 构造函数
    HealthHeadRedisKeyEnum(String key, int timeout) {
        this.key = key;
        this.timeout = timeout;
    }

    // 获取键
    public String getKey() {
        return key;
    }

    // 设置键
    public void setKey(String key) {
        this.key = key;
    }

    // 获取超时时间
    public int getTimeout() {
        return timeout;
    }

    // 设置超时时间
    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }
}
